package com.tuscanyscatours.impl;

import org.oasisopen.sca.annotation.Reference;

import com.goodvaluetrips.Trips;
import com.tuscanyscatours.Bookings;
import com.tuscanyscatours.Updates;

public class TripBookingImpl implements Bookings{
	
	@Reference
	protected Trips mytrips;
	
	@Reference
	protected Updates cart;

	public String newBooking(String trip, int people) {
		String resCode=mytrips.checkAvailability(trip, people);
		cart.addTrip(resCode);
		return "GV" + resCode;
	}

}
